package com.sinosoft.front.service;

public class VehicleModelQueryServicePortTypeProxy implements com.sinosoft.front.service.VehicleModelQueryServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.VehicleModelQueryServicePortType vehicleModelQueryServicePortType = null;
  
  public VehicleModelQueryServicePortTypeProxy() {
    _initVehicleModelQueryServicePortTypeProxy();
  }
  
  public VehicleModelQueryServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initVehicleModelQueryServicePortTypeProxy();
  }
  
  private void _initVehicleModelQueryServicePortTypeProxy() {
    try {
      vehicleModelQueryServicePortType = (new com.sinosoft.front.service.VehicleModelQueryServiceLocator()).getVehicleModelQueryServiceHttpSoap11Endpoint();
      if (vehicleModelQueryServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)vehicleModelQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)vehicleModelQueryServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (vehicleModelQueryServicePortType != null)
      ((javax.xml.rpc.Stub)vehicleModelQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.VehicleModelQueryServicePortType getVehicleModelQueryServicePortType() {
    if (vehicleModelQueryServicePortType == null)
      _initVehicleModelQueryServicePortTypeProxy();
    return vehicleModelQueryServicePortType;
  }
  
  public void setVehicleModelQueryCheckInterface(com.sinosoft.front.busInterface.xsd.VehicleModelQueryCheckInterface vehicleModelQueryCheckInterface) throws java.rmi.RemoteException{
    if (vehicleModelQueryServicePortType == null)
      _initVehicleModelQueryServicePortTypeProxy();
    vehicleModelQueryServicePortType.setVehicleModelQueryCheckInterface(vehicleModelQueryCheckInterface);
  }
  
  public com.sinosoft.front.dto.xsd.VehicleModelQueryResponse queryVehicleModel(com.sinosoft.front.dto.xsd.VehicleModelQueryRequest request) throws java.rmi.RemoteException{
    if (vehicleModelQueryServicePortType == null)
      _initVehicleModelQueryServicePortTypeProxy();
    return vehicleModelQueryServicePortType.queryVehicleModel(request);
  }
  
  public void setVehicleModelQueryInterface(com.sinosoft.front.busInterface.xsd.VehicleModelQueryInterface vehicleModelQueryInterface) throws java.rmi.RemoteException{
    if (vehicleModelQueryServicePortType == null)
      _initVehicleModelQueryServicePortTypeProxy();
    vehicleModelQueryServicePortType.setVehicleModelQueryInterface(vehicleModelQueryInterface);
  }
  
  
}